package cn.itcast.java;

/**
 * Author itcast
 * Date 2021/10/6 11:28
 * Desc TODO
 */
public class HelloWorld {
    public static void main(String[] args) {
        //1. 单行注释 ctrl + /
        //当前功能是注释，输出 hello world
        System.out.println("hello world1"); //sout
        //2. 多行注释
       /*System.out.println("hello world2"); //sout
        System.out.println("hello world3"); //sout
        System.out.println("hello world4"); //sout*/
        //3. 文档注释
        System.out.println("hello world5"); //sout

        System.out.println(add(1,2));

    }

    /**
     * 将输入的两个参数进行求和
     * @param a
     * @param b
     * @return a+b
     */
    public static Integer add(int a,int b){
        return a+b;
    }
}
